import { http } from "@/utils/http";

// 获取总览数据
export const getOverViewDataAPI = data => {
  return http.request("post", "/energy/energyCost/viewSupplySummary", {
    data
  });
};

// 获取电数据
export const getElectricityDataAPI = data => {
  return http.request("post", "/energy/energyCost/viewSupplyElectricity", {
    data
  });
};

// 获取大宗气数据
export const getGasDataAPI = data => {
  return http.request("post", "/energy/energyCost/viewSupplyGas", {
    data
  });
};

// 获取蒸汽/热水数据
export const getHotSteamAPI = data => {
  return http.request("post", "/energy/energyCost/viewSupplyHotSteam", {
    data
  });
};

// 获取天然气数据
export const getNgAPI = data => {
  return http.request("post", "/energy/energyCost/viewSupplyNG", {
    data
  });
};

// 获取水数据
export const getWaterAPI = data => {
  return http.request("post", "/energy/energyCost/viewSupplyWater", {
    data
  });
};
